package com.jf.mall.domain;

import java.math.BigDecimal;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-09-26
 * Time:11:44
 */
public class Furniture {
    private Integer id;
    private String name;
    private String maker;
    private BigDecimal price;
    private Integer stock;
    private Integer sale;
    private String imgPath;

    public Furniture() {
        imgPath = "assets/images/product-image/default.jpg";
    }

    public Furniture(String name, String maker, BigDecimal price, Integer stock, Integer sale, String imgPath) {
        this.name = name;
        this.maker = maker;
        this.price = price;
        this.stock = stock;
        this.sale = sale;
        this.imgPath = imgPath;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getMaker() {
        return maker;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public Integer getStock() {
        return stock;
    }

    public Integer getSale() {
        return sale;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setMaker(String maker) {
        this.maker = maker;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public void setSale(Integer sale) {
        this.sale = sale;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    @Override
    public String toString() {
        return "Furniture{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", maker='" + maker + '\'' +
                ", price=" + price +
                ", stock=" + stock +
                ", sale=" + sale +
                ", imgPath='" + imgPath + '\'' +
                '}';
    }
}
